package com.example.housekeeping.pojo.dto;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 管理员
 * @author 25614
 * @TableName admin
 */
@Data
@JsonFormat(pattern = "yyyy-mm-dd HH:MM:SS",timezone = "GTM+8")
public class AdminAddNewDTO implements Serializable {
    /**
     * 数据id
     */

    private Long id;

    /**
     * 用户名
     */
    @ApiModelProperty(name = "username",value = "用户名",required = true,dataType = "String",example = "root")
    private String username;

    /**
     * 密码（密文）
     */
    @ApiModelProperty(name = "password",value = "密码（密文）",required = true,dataType = "String",example = "123456")
    private String password;

    /**
     * 昵称
     */
    @ApiModelProperty(name = "nickname",value = "昵称",required = true,dataType = "String",example = "tom")
    private String nickname;

    /**
     * 头像URL
     */
    @ApiModelProperty(name = "avatar",value = "头像URL",required = true,dataType = "String",example = "https://www.wdaw.cn")
    private String avatar;

    /**
     * 手机号码
     */
    @ApiModelProperty(name = "phone",value = "手机号码",required = true,dataType = "String",example = "1458371231")
    private String phone;

    /**
     * 电子邮箱
     */
    @ApiModelProperty(name = "email",value = "电子邮箱",required = true,dataType = "String",example = "263812367832@126.com")
    private String email;

    /**
     * 简介
     */
    @ApiModelProperty(name = "description",value = "简介",required = true,dataType = "String",example = "测试简介")
    private String description;

    /**
     * 是否启用，1=启用，0=未启用
     */
    @ApiModelProperty(name = "enable",value = "是否启用，1=启用，0=未启用",required = false,dataType = "Integer",example = "0")
    private Integer enable;

    private Long[] roleIds;
    private static final long serialVersionUID = 1L;
}